
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The hidden pop-up */
.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%; /* position above the link */
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Show on hover */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.floating-menu {
  position: fixed;
  top: -15px;
  left: -15px;
  z-index: 999;
}

.menu-button {
  width: 55px;
  height: 55px;
  background: #2A0066;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.menu-button svg {
  stroke: #00E5FF;
}

.menu-button:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px #4fe8ff, 0 0 24px #ff4fd8;
  z-index: 9000;
}

#menu-toggle {
  display: none;
}

.menu-items {
  position: absolute;
  top: 0;
  pointer-events: none;
}

.menu-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  transition: 0.35s ease;
  opacity: 0;              /* invisible */
  background-color: transparent; /* no circle */
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

/* Tooltip base */
.menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: 110%; /* move tooltip to the right of the circle */
  transform: translateY(-50%);
  background: #2A0066;
  color: #00E5FF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 0 10px #FF00C8, 0 0 20px #00E5FF;
}

.menu-item,
.menu-item:hover,
.menu-item:focus {
  text-decoration: none;
}


.menu-item i {
  font-size: 18px;
  color: #00E5FF; /* neon cyan */
  opacity: 0;     /* hidden when collapsed */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Tooltip on hover */
.menu-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.menu-item svg {
  opacity: 0; /* hide icon too */
  transition: opacity 0.3s;
}

#menu-toggle:checked ~ .menu-items .menu-item:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px #4fe8ff, 0 0 24px #ff4fd8;
  z-index: 9000;
}

#menu-toggle:checked ~ .menu-items .menu-item {
  background-color: #7A00FF; /* ultraviolet */
  box-shadow: 0 0 0, 0 0 10px #00E5FF;
  opacity: 1;
}

#menu-toggle:checked ~ .menu-items .menu-item i {
  opacity: 1; /* show icon */
  stroke: #4FC3F7; /* soft glow blue */
  opacity: 1;
}

/* Perfect quarter-circle using your custom endpoints */
#menu-toggle:checked ~ .menu-items .menu-item:nth-child(1) {
  transform: translate(84px, 15px);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle:checked ~ .menu-items .menu-item:nth-child(2) {
  transform: translate(74px, 49px);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle:checked ~ .menu-items .menu-item:nth-child(3) {
  transform: translate(49px, 74px);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle:checked ~ .menu-items .menu-item:nth-child(4) {
  transform: translate(15px, 84px);
  opacity: 1;
  pointer-events: auto;
}

/* Button animation */
#menu-toggle:checked + .menu-button {
  transform: rotate(90deg);
}
